//
//  BaseTableView.h
//

#import <UIKit/UIKit.h>
#import "EGORefreshTableHeaderView.h"       //下拉刷新


typedef void(^PullDownFinish)(void);
@interface BaseTableView : UITableView<UITableViewDataSource,UITableViewDelegate,EGORefreshTableHeaderDelegate>
{
    EGORefreshTableHeaderView *_refreshHeaderView;
//    UIButton *_refreshFooterButton;
//    BOOL _reloading;
//    BOOL _uploading;
}
@property (nonatomic,strong) UIButton       *refreshFooterButton;
@property (nonatomic,copy)   PullDownFinish pullBlock;
@property (nonatomic,copy)   PullDownFinish upBlock;



@property (nonatomic,strong) NSMutableArray *data;                 //数据


@property (nonatomic,assign) BOOL  refreshHeader;         //是否需要下拉刷新
@property (nonatomic,assign) BOOL  isLastPage;

@property (nonatomic,assign) BOOL  reloading;
@property (nonatomic,assign) BOOL  uploading;

- (void)_createView;

- (void)doneLoadingTableViewData;

- (void)egoRefreshTableHeaderDidTriggerRefresh:(EGORefreshTableHeaderView*)view;

- (void)hiddenfootView;
- (void)showfootView;
@end
